]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Get cursor texture from window
authorIvan Molodetskikh <yalterz@gmail.com>
Sun, 19 Mar 2023 04:45:41 +0000 (21:45 -0700)
committerIvan Molodetskikh <yalterz@gmail.com>
Tue, 21 Mar 2023 16:46:52 +0000 (09:46 -0700)
commit237c3e958db16bb4aa2aa575085e2e249cdee67e
tree13e25325c8bd37ba909440f67d72b4ae694aa7bd
parent69e7b8e79ad71094283fb41ad018f6a8c43ade65
screenshot: Get cursor texture from window

When a window is in the background and should not have the cursor on top
of it, its _cursor will be null. By getting the texture through it, we
add this extra check, which was missing before, leading to a cursor
drawn at 0, 0 on windows where it should not have been drawn.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2702>
js/ui/screenshot.js